Mystery Of The Nakamoto Consensus Solved